package com.vne.skyemart.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.vne.skyemart.dao.CommentDao;
import com.vne.skyemart.model.Comment;
import com.vne.skyemart.service.CommentService;

@Service("commentService")
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class CommentServiceImpl implements CommentService{
	@Autowired
	private CommentDao commentDao;

	public CommentDao getCommentDao() {
		return commentDao;
	}

	public void setCommentDao(CommentDao commentDao) {
		this.commentDao = commentDao;
	}
	public CommentServiceImpl() {}
	@Transactional(propagation = Propagation.SUPPORTS,readOnly = false)
	@Override
	public void addComment(Comment comment) {
		
	}

	@Override
	public List<Comment> listComment() {
		
		return null;
	}
	
}
